package cn.elegent.lock.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LockConfig {

    public static final String PREFIX="elegent-lock/";

    /**
     * 红锁地址列表
     */
    @Value("${elegent.lock.host}")
    private String[] host;

    /**
     * 尝试获取锁等待时间
     */
    @Value("${elegent.lock.wait:10}")
    private int wait;

	public String[] getHost() {
		return host;
	}

	public void setHost(String[] host) {
		this.host = host;
	}

	public int getWait() {
		return wait;
	}

	public void setWait(int wait) {
		this.wait = wait;
	}
    

}
